﻿namespace VyAutoBuildEntity.Plugin.Model
{
    public class TableColumnModel
    {
        /// <summary>
        ///     表名
        /// </summary>
        public string TableName { get; set; }

        /// <summary>
        ///     字段名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        ///     是否是主键(PK)或者外键(FK)
        /// </summary>
        public string KeyType { get; set; }

        /// <summary>
        ///     字段类型
        /// </summary>
        public string DataType { get; set; }

        /// <summary>
        ///     是否为空
        /// </summary>
        public string IsNull { get; set; }

        /// <summary>
        ///     默认值
        /// </summary>
        public string DefaultValue { get; set; }

        /// <summary>
        ///     备注信息
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        ///     CS 数据类型
        /// </summary>
        public string CSharpType { get; set; }

        /// <summary>
        ///     CS属性Name
        /// </summary>
        public string CSharpName { get; set; }

        /// <summary>
        ///     Json 每个字母都大写
        /// </summary>
        public string JsonNameWithUpper { get; set; }

        /// <summary>
        ///     Json 把驼峰命名的改写成用下划线的
        /// </summary>
        public string JsonNameWith_ { get; set; }
    }
}